<template>
  <view class="information">
    <view class="title">
      候诊排队
    </view>
    <view class="main">
      <view class="">
        <view class="numtitle">
          当前叫号
        </view>
        <view class="num">
          18
        </view>
        <view class="flexR queueDetail">
          <view class="">
            <view class="">
              我的就诊号
            </view>
            <view class="">
              32
            </view>
          </view>
          <view class="">
            <view class="">
              前面等待人数
            </view>
            <view class="">
              14
            </view>
          </view>
        </view>
      </view>
      
      <view class="line"></view>
      
      <view class="top">
        <view class="item">
          <view class="label">就诊科室：</view>
          <view class="value">骨科</view>
        </view>
        <view class="item">
          <view class="label">就诊位置：</view>
          <view class="value red">
            <view class="pst flexC" @click="$router.push('/pages/navInHsp/navInHsp')">
              <img :src="`${$store.state.baseApi}/icon/way.png`" alt="">
              路线
            </view>
            门诊三楼B区外科诊区
          </view>
        </view>
        <view class="item">
          <view class="label">预约医生：</view>
          <view class="value">肖友明（副主任医师）</view>
        </view>
        <view class="item">
          <view class="label">预约时间：</view>
          <view class="value red">2024-08-12（周一） 10:00～10:30</view>
        </view>
      </view>
      
    </view>
  </view>
  
</template>

<script>
import { mapGetters } from 'vuex';
export default {
  computed:{
  	...mapGetters(['userInfo']),
  }
}
</script>

<style lang="scss" scoped>
.information {
  width: 100%;
  border: 1px solid $theme-color;
  border-radius: 8upx;
  .title {
    line-height: 80upx;
    background-color: $theme-color;
    color: #FFF;
    text-align: center;
  }
}
.main {
  padding: 24upx;
  border-radius: 8upx;
}
.item {
  display: flex;
  margin-bottom: 24upx;
  .label {
    flex-shrink: 0;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 28upx;
    color: rgba(0,0,0,0.5);
    line-height: 44upx;
  }
  .value {
    flex: 1;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 28upx;
    color: rgba(0,0,0,0.7);
    line-height: 44upx;
    position: relative;
    .pst {
      align-items: center;
      float: right;
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 24upx;
      color: #3E81F7;
      line-height: 44upx;
      // transform: translateX(8upx);
      margin-left: -8upx;
      margin-right: -8upx;
      >img {
        width: 32upx;
        height: 32upx;
      }
    }
  }
}
.line {
  margin-bottom: 24upx;
}
.numtitle {
  width: 200upx;
  height: 66upx;
  background: #E2EDFF;
  border-radius: 50upx;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 28upx;
  color: rgba(0,0,0,0.7);
  line-height: 66upx;
  margin: 8upx auto 24upx;
  text-align: center;
}
.num {
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 48upx;
  color: #3E81F7;
  line-height: 44upx;
  text-align: center;
  margin-bottom: 60upx;
}
.queueDetail {
  justify-content: space-around;
  view {
    text-align: center;
    margin-bottom: 14upx;
  }
}
</style>